import request from '@/utils/request'


//站内信未读数据查询
  export  function listMessage(query) {
    return request({
      url: '/credit/message/findAll',
      method: 'get',
      params: query
    })
  }
  //站内信已读数据查询
  export  function listreadMessage(query) {
    return request({
      url: '/credit/message/read',
      method: 'get',
      params: query
    })
  }
  // 修改去读状态
export function updateRead(data) {
  return request({
    url: '/credit/message/updateread',
    method: 'put',
    data: data
  })
}
//根据id查询信息
export function getMessage(id) {
  return request({
    url: '/credit/message/' + id,
    method: 'get'
  })
}
